package scomA2Proj;

import System.Diagnostics.Stopwatch;

public class Order {
	/**
	 * The DateTime the order was submitted by retailer.
	 */
	public Stopwatch _stopwatch;
	/**
	 * The sender id. This should be the thread id.
	 */
	public int _senderID;
	/**
	 * Credit card number
	 */
	public int _cardNo;
	/**
	 * Number of chickens.
	 */
	public int _amount;
	public OrderProcessingThread _unnamed_OrderProcessingThread_;

	private Order() {
		throw new UnsupportedOperationException();
	}

	/**
	 * &lt;summary&gt;
	 * Creates an order
	 * &lt;/summary&gt;
	 * &lt;param name="senderID"&gt;The sender id(thread id).&lt;/param&gt;
	 * &lt;param name="cardno"&gt;the credit card number.&lt;/param&gt;
	 * &lt;param name="amount"&gt;The number of chickens to order.&lt;/param&gt;
	 */
	public Order(Stopwatch aStopwatch, int aSenderID, int aCardno, int aAmount) {
		throw new UnsupportedOperationException();
	}

	/**
	 * &lt;summary&gt;
	 * Encode an order to a string as xml.
	 * &lt;/summary&gt;
	 * &lt;param name="order"&gt;The order to encode&lt;/param&gt;
	 * &lt;returns&gt;XML string of the order.&lt;/returns&gt;
	 */
	public static String Encode(Order aOrder) {
		throw new UnsupportedOperationException();
	}

	/**
	 * &lt;summary&gt;
	 * Decode an order from a string into Order object
	 * &lt;/summary&gt;
	 * &lt;param name="order"&gt;The xml string order.&lt;/param&gt;
	 * &lt;returns&gt;The decoded Order object.&lt;/returns&gt;
	 */
	public static Order Decode(String aOrder) {
		throw new UnsupportedOperationException();
	}

	/**
	 * &lt;summary&gt;
	 * Determins whether or not all attributes of an Order equals all attributes of another Order.
	 * &lt;/summary&gt;
	 * &lt;param name="obj"&gt;Other object to compare.&lt;/param&gt;
	 * &lt;returns&gt;True if all attributes are equal.&lt;/returns&gt;
	 */
	public boolean Equals(object aObj) {
		throw new UnsupportedOperationException();
	}

	/**
	 * &lt;summary&gt;
	 * Gets the hash code.
	 * &lt;/summary&gt;
	 * &lt;returns&gt;integer hash of the object.&lt;/returns&gt;
	 */
	public int GetHashCode() {
		throw new UnsupportedOperationException();
	}

	public void setSenderID(int aSenderID) {
		this._senderID = aSenderID;
	}

	public int getSenderID() {
		return this._senderID;
	}

	public void setCardNo(int aCardNo) {
		this._cardNo = aCardNo;
	}

	public int getCardNo() {
		return this._cardNo;
	}

	public void setAmount(int aAmount) {
		this._amount = aAmount;
	}

	public int getAmount() {
		return this._amount;
	}
}